<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
</head>
<body>
 <div id="app">
<!-- 条件渲染  -->
   <h1 v-if="isShow">万象天引</h1>
   <button @click="changeIsShow">点击</button>
 </div>
<script>
  const vm = new Vue({
    el:"#app",
    data(){
      return{
        isShow:true
      }
    },
    methods:{
      changeIsShow(){
        this.isShow = !this.isShow
      }
    }
  })
</script>
</body>
</html>